<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改页面</title>
</head>
<body>
<!-- 错误详细 -->
<c:forEach items="${ allErrors}" var="error">
	${error.defaultMessage }
</c:forEach>
<form action="${pageContext.request.contextPath }/editItemsSubmit.action" method="post">
	<input type="hidden" name="id" value="${itemsCustom.itemsId }">
	<p>商品修改:</p>
	<table width="100%" border="1">
		<tr>
			<td>商品名称</td>
			<td><input type="text" value="${itemsCustom.name }" name="name"/></td>
		</tr>
		<tr>
			<td>商品价格</td>
			<td><input type="text" value="${itemsCustom.price }" name="price"/></td>
		</tr>
		<tr>
			<td>商品介绍</td>
			<td><textarea cols="12" rows="8"  name="introduce">${itemsCustom.introduce }</textarea> </td>
		</tr>
		<tr>
			<td>商品创建时间</td>
			<td><input type="text" value="<fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${itemsCustom.createtime }" />" name="createtime"/></td>
		</tr>
		<tr>
			<td align="center"  colspan="2"> <input type="submit" value="确认修改" /></td>
		</tr>
	</table>
	
</form>

</body>
</html>